Fixed bug in GtkSizeRequest code where the cache is not reset properly
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 4 Apr 2011 04:58:05 +0000 (13:58 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 4 Apr 2011 04:58:05 +0000 (13:58 +0900)
Fixes this bug https://bugzilla.gnome.org/show_bug.cgi?id=646500

gtk/gtksizerequest.c

index 4b379cc780b78217630d3494b8484d649cd2963d..ef3983cdbf59dc94d7a9177803af9d9f207eb1f9 100644 (file)
@@ -143,7 +143,8 @@ init_cache (GtkWidget        *widget)
 
   if (_gtk_widget_get_width_request_needed (widget))
     clear_cache (cache, GTK_SIZE_GROUP_HORIZONTAL);
-  else if (_gtk_widget_get_height_request_needed (widget))
+  
+  if (_gtk_widget_get_height_request_needed (widget))
     clear_cache (cache, GTK_SIZE_GROUP_VERTICAL);
 
   return cache;